package user

import "ginGo/person"

type User struct {
	Male person.Male
	Food person.Food
}

func NewUser(p person.Male, f person.Food) *User {
	return &User{
		Male: p,
		Food: f,
	}
}

func (u *User) GetUserInfo(id int64) (error, int64, int64) {
	return u.Male.Get(id), u.Male.Put(), u.Male.Tex()
}

func (u *User) eat() int64 {
	return u.Food.Good()
}
